package com.foodchain.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @Author: yuanZ;
 * @Date: 2018/10/10 20:44;
 * @Description: 系统设置;
**/
@Entity
@Getter
@Setter
public class SystemSetting implements Serializable {

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    private String id;

    @Column(name = "s_key", length = 32)
    private String key; // 配置键

    @Column(name = "s_name", length = 128)
    private String name; // 名称

    @Column(name = "s_value", length = 512)
    private String value; // 值

}
